<script setup lang="ts">
import { onMounted } from 'vue'
import AppLayout from './components/AppLayout.vue'
import { useUserStore } from './stores/user'

const userStore = useUserStore()

// 在应用启动时初始化用户状态
onMounted(async () => {
  await userStore.initialize()
})
</script>

<template>
  <AppLayout />
</template>

<style>
/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 修复移动端点击延迟 */
* {
  touch-action: manipulation;
}
</style>
